﻿using System;
using System.Data;
using System.Data.SqlClient;
using SalePartial.Utility;
using SalePartial.Model;
using SalePartial.IDAL;

namespace SalePartial.BLL
{

    public class Categories : ICategories
    {
        private ICategories dal = SalePartial.DALFactory.DataAccess.CreateCategories();



        public int AddCategory(CategoriesInfo cat)
        {
            return dal.AddCategory(cat);
        }

        public CategoriesInfo GetCategory(Guid categoryID)
        {
            return dal.GetCategory(categoryID);
        }

        public int UpdataCategory(CategoriesInfo cat)
        {
            return dal.UpdataCategory(cat);
        }

        public int DeleteCategory(Guid categoryID)
        {
            return dal.DeleteCategory(categoryID);
        }

        public int AddCatWac(Guid catID, Guid wacID)
        {
            return dal.AddCatWac(catID, wacID);
        }
    }
}